package com.kailong.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kailong
 * @date 2025/8/4
 */
@RestController

@RequestMapping("")
public class TestController {
    @PreAuthorize("hasAnyRole('USER')")
    @GetMapping("/test")
    public String test() {
        return "success";
    }
}